home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5188 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.central.ntua.gr!not-for-mail
  2. From: hnick@central.ntua.gr (Nick C. Fotis)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
  5. Date: 10 Mar 1996 22:10:55 GMT
  6. Organization: National Technical University of Athens, Greece
  7. Message-ID: <4hvk1f$o0c@zeus.central.ntua.gr>
  8. References: <1120.6643T91T406@login.eunet.no>
  9. NNTP-Posting-Host: gate2-zeus.central.ntua.gr
  10. X-Newsreader: NN version 6.5.0 #1 (NOV)
  11.  
  12. patrick.hanevold@login.eunet.no (Patrick Hanevold) writes:
  13.  
  14.  
  15. >#define ScreenWidth     160
  16. >#define ScreenHeight    128
  17. >void main(void)
  18. >{
  19. >    int     x,y,n;
  20. >    UBYTE   Buffer[ScreenWidth];
  21. >    ULONG   Palette[256*3+2];           // This one causes the bug.
  22. >    struct  Screen  *Scr=OpenScreenTags(NULL,
  23. >        SA_Width,           320,
  24. >        SA_Height,          256,
  25. >        SA_Depth,           8,
  26. >        TAG_END);
  27.  
  28. Hmm, that Palette array holds 3080 bytes on the stack.
  29. My guess is that you screw up your stack. Try making the stack bigger or
  30. declare the array as global, out of the main function.
  31.  
  32. ><sb>Patrick Hanevold - Virtual Reality developer
  33. ><sb>patrick.hanevold@login.eunet.no
  34. ><sb>Amiga and official Be developer
  35.  
  36. --
  37.  
  38. +----------------------------------------------------------------------------+
  39. | Alkinoos Alexandros Argiropoulos                  A1200, '030@40, 6MB Fast |
  40. | Athens, Greece                       "AAA is not a chipset...It's my name" |
  41. +----------------------------------------------------------------------------+
  42.